package org.dl.gjz.menyj.task.listener;

import org.camunda.bpm.engine.delegate.DelegateTask;
import org.camunda.bpm.engine.delegate.TaskListener;
import org.springframework.stereotype.Service;

@Service("approveCompleteListener")
public class ApproveCompleteListener implements TaskListener {
//    @Override
//    public void execute(DelegateExecution execution) throws Exception {
//        String activityName =execution.getCurrentActivityName();
//        System.out.println(activityName + ": Complete");
//    }

    @Override
    public void notify(DelegateTask delegateTask) {
        System.out.println(delegateTask.getName() + "-" + delegateTask.getEventName()+ "-"  + ": Complete");
    }
}
